package com.qianfeng.zhangwei.volley;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;

import com.qianfeng.zhangwei.volley.http.RequestManager;

import java.util.HashMap;

public class VolleyManagerActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_volley_manager);
        //实际开发请在Application中调用
        RequestManager.getInstance().init(getApplicationContext());
        testPost();
    }



    public void testPost() {
        HashMap<String, String> params = new HashMap<>();
        RequestManager.getInstance().post("", params, 0, new RequestManager.RequestListener() {
            @Override
            public void onStart() {

            }

            @Override
            public void onSuccess(String response, String url, int actionId) {

            }

            @Override
            public void onError(String errorMsg, String url, int actionId) {

            }
        });
    }


}
